﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Win104.IEC104
{
    public class EQualifierOfInterrogation : InformationElement
    {
        private int value;
        public EQualifierOfInterrogation(ByteBody data)
        {
            value = (data.GetByte() & 0xFF);
        }
        public override int Encode(byte[] buffer, int i)
        {
            buffer[i] = (byte)value;
            return 1;
        }
        public int GetValue() { return value; }
        public override string ToString()
        {
            return "Qualifier of interrogation:" + value;
        }
    }
}
